﻿using SLClient.Extension;
using System;
using System.Diagnostics;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using System.Windows.Input;

namespace SLClient.CustomerControls
{
    public partial class BounsEditWindow : ChildWindow
    {
        public BounsEditWindow(int playTypeId, int playTypeInfoId, decimal jiangjin, decimal fandian)
        {
            this.InitializeComponent();
            base.DataContext=new BonusEditViewModel(playTypeId, playTypeInfoId, jiangjin, fandian);
            this.sliderBonus.ValueChanged += new RoutedPropertyChangedEventHandler<double>(sliderBonus_ValueChanged);
        }

        private void btClose_Click(object sender, RoutedEventArgs e)
        {
            base.DialogResult = true;
        }

        private void CancelButton_Click(object sender, RoutedEventArgs e)
        {
            base.DialogResult = false;
        }

        private void lbBackPct_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
        {
        }

        private void lbBonus_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
        {
        }

        private void sliderBonus_ValueChanged(object sender, RoutedPropertyChangedEventArgs<double> e)
        {
        }
    }
}

